import React from 'react';

const ChildComponent = ({ message, user, onButtonClick }) => {
  return (
    <div>
      <h2>Child Component</h2>
      <p>Message from Parent: {message}</p>
      <p>User Info: {user.name}, {user.age} years old</p>
      <button onClick={onButtonClick}>Click Me</button>
    </div>
  );
};

export default ChildComponent;